%module(directors="1") mjin2
%feature("director");
%{
#include <mjin2/mjin2.h>
%}

%include "std_string.i"
%include "std_vector.i"
namespace std {
    %template(SequencePoint) vector<float>;
    %template(SequencePoints) vector<vector<float> >;
    %template(StringList) vector<string>;
    %template(Vec3List) vector<mjin2::Vec3>;
    %template(XMLAttributes) vector<mjin2::XMLAttribute>;
    %template(XMLNodes) vector<mjin2::XMLNode>;
}
%include "mjin2/include/mjin2/mjin2.h"
%typemap(throws) mjin2::Exception %{
    PyErr_SetString(PyExc_RuntimeError, $1);
    SWIG_fail;
%}
